package com.neo.push.core;

/**
 * Created by lock on 17-7-13.
 */
public class SocketRegisterMessage extends JsonObjectMessage<RegisterMessage> {


    private RegisterMessage registerMessage;

    public SocketRegisterMessage(String targetName,String targetAlias){
        this(new RegisterMessage(targetName,targetAlias));
    }

    public SocketRegisterMessage(RegisterMessage registerMessage) {
        super(MessageType.REGISTER,registerMessage);
        this.registerMessage = registerMessage;
    }

    public RegisterMessage getRegisterMessage() {
        return registerMessage;
    }
}
